package com.shuwen.gcdj.bean.basicsRepair.response;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel
public class RepairListResp {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("工单编号")
    private String orderCode;

    @ApiModelProperty("设备id")
    private String equipmentId;

    @ApiModelProperty("设备名称")
    private String equipmentName;

    @ApiModelProperty("设备区域")
    private String areaName;

    @ApiModelProperty("设备编号")
    private String equipmentNo;

    @ApiModelProperty("专业（1机械-2电气）")
    private Integer major;

    @ApiModelProperty("专业名称")
    private String majorName;

    @ApiModelProperty("等级（1一级-2二级）")
    private Integer grade;

    @ApiModelProperty("等级名称）")
    private String gradeName;

    @ApiModelProperty("负责部门")
    private String responsibleDepartment;

    @ApiModelProperty("负责部门名称")
    private String responsibleDepartmentName;

    @ApiModelProperty("开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    @ApiModelProperty("维修状态（1待审核-2已拒绝-3待派发-4待处理-5待验收-6已完工-7已拒绝）")
    private Integer state;

    @ApiModelProperty("维修状态）")
    private String stateName;

    @ApiModelProperty("维修来源")
    private Integer soursce;

    @ApiModelProperty("维修来源")
    private String soursceName;

    @ApiModelProperty("维修人名称")
    private String repairPersonName;

}
